<div class="${style.detail}">
  <a ui-sref="club.vote.list({id:id})">所有投票</a>
  <span> <i class="fa fa-angle-right" aria-hidden="true"></i> {{$ctrl.vote.id}}</span>
  <div class="sum">
    <h1 ng-bind="$ctrl.vote.theme"></h1>
  </div>
  <div ng-if="$ctrl.vote.type==0 && !$ctrl.vote.haschoice">
    <p ng-repeat="item in $ctrl.vote.content track by $index">
      <input type="radio" name="$ctrl.vote.theme" ng-click="$parent.select($event,$index,0)" ng-checked="$parent.isChecked($index)">{{item}}
    </p>
  </div>
  <div ng-if="$ctrl.vote.type==1 && !$ctrl.vote.haschoice">
    <p ng-repeat="item in $ctrl.vote.content track by $index">
      <input type="checkbox" name="$ctrl.vote.theme" ng-click="$parent.select($event,$index,1)" ng-checked="$parent.isChecked($index)">{{item}}
    </p>
  </div>

  <div ng-if="$ctrl.vote.haschoice">
    <p>result:{{$ctrl.result}}</p>
    <canvas id="sg-canvas" width="500px" height="500px"></canvas>
  </div>
  <button ng-show="!$ctrl.vote.haschoice" ng-click="submit($ctrl.vote.id)">投票</button>

</div>